<?php
$a_menus = array (
    array (
        'icon'    => 'group',
        'title'   => 'Quản Lý',
        'url'     => 'javascript:;',
        'submenu' => array (
            array (
                'title'   => 'Danh Sách',
                'url'     => "user_list.php",
                'modules' => array ( 'index.php', 'user_detail.php', 'user_detail_diary.php' ),
            ),
            array (
                'url'   => 'user_form.php',
                'title' => 'Thêm Thành Viên',
            ),
            array (
                'url'   => 'user_update.php',
                'title' => 'Cập Nhật Thông Tin',
            )
        )
    ),
    array (
        'icon'    => 'bar-chart',
        'title'   => 'Theo Dõi',
        'url'     => 'javascript:;',
        'submenu' => array (
            array (
                'url'   => 'attendance.php',
                'title' => 'Điểm Danh',
                'query' => "category_team=$s_Team&category_level=$s_Level&category_crew=$s_Crew&category4=" . date('Y-m'),
            ),
            array (
                'url'   => 'score.php',
                'title' => 'Điểm Kiểm Tra',
                'query' => "category_team=$s_Team&category_level=$s_Level&category_crew=$s_Crew",
            ),
            array (
                'title' => 'Dưới Trung Bình',
                'url'   => 'report.php',
            ),
        )
    ),
    array (
        'icon'  => 'trophy',
        'title' => 'Tổng Kết',
        'url'   => 'review.php',
        'query' => "category_course=$s_Course&category_team=$s_Team&category_level=$s_Level&category_crew=$s_Crew",
    ),
    array (
        'url'   => 'room.php',
        'title' => 'Phòng Học',
        'name'  => 'Phòng Học',
        'icon'  => 'hdd',
    ),
    array (
        'title'   => 'Tài Liệu',
        'name'    => 'Tài Liệu',
        'icon'    => 'book',
        'url'     => 'javascript:;',
        'submenu' => array (
            array (
                'url'   => $s_File_System_URL,
                'title' => 'Quản Lý Tài Liệu',
            ),
            array (
                'url'   => 'document_log_list.php',
                'title' => 'Lược Sử',
            )
        )
    ),
    array (
        'icon'    => 'windows',
        'title'   => 'Admin',
        'url'     => 'javascript:;',
        'submenu' => array (
            array (
                'title'   => 'Action',
                'url'     => "admin_passport_action_list.php",
                'modules' => array ( 'admin_passport_action_form.php' ),
                'class'   => 'hidden',
            ),
            array (
                'title'   => 'Module',
                'url'     => 'admin_passport_module_list.php',
                'modules' => array ( 'admin_passport_module_form.php' ),
                'class'   => 'hidden',
            ),
            array (
                'title'   => 'Phân Quyền',
                'url'     => 'admin_passport_permission_list.php',
                'modules' => array ( 'admin_passport_permission_form.php' ),
            ),
            array (
                'url'   => 'admin_config.php',
                'title' => 'Thông Số',
            )
        )
    ),
);

$a_breadcrumb = array ( );
set_breadcumb_active($a_menus, $a_breadcrumb);
$a_breadcrumb = array_reverse($a_breadcrumb);

$a_hidden_page = get_passport_hidden_page($db_conn, array_keys($a_PPO_Pages));
hide_menu_from_page($a_menus, $a_hidden_page);
?>

<!-- BEGIN SIDEBAR MENU -->
<ul class="page-sidebar-menu">
    <li>
        <!-- BEGIN SIDEBAR TOGGLER BUTTON -->
        <div class="sidebar-toggler hidden-phone"></div>
        <!-- BEGIN SIDEBAR TOGGLER BUTTON -->
    </li>
    <li>
        <!-- BEGIN RESPONSIVE QUICK SEARCH FORM -->
        <form class="sidebar-search">
            <div class="input-box">
                <a href="javascript:;" class="remove"></a>
                <input type="text" placeholder="Tìm..." id="search_user" />
                <input type="button" class="submit" value=" " />
            </div>
        </form>
        <!-- END RESPONSIVE QUICK SEARCH FORM -->
    </li>
    <?php build_menu($a_menus); ?>
</ul>
<!-- END SIDEBAR MENU -->